<!--行业新闻详情-->
<template>
  <div class="contain">
    <app-header></app-header>
    <div class="contain-wrap">
      <h2 class="news-title">{{todolist.title}}</h2>
      <div class="news-tips">
        <span class="time">{{todolist.pubdate}}</span>
        <em class="name">{{todolist.pubpersonname}}</em>
      </div>
      <div class="news-body">
        <p v-html="todolist.content">
        </p>
      </div>
    </div>
  </div>
</template>

<script>
import appHeader from '@/components/core/header/app_header.vue';
export default {
  components:{
    appHeader
  },
  data() {
    return {
      todolist: [],
    }
  },
  created() {
    this.getdetail();
  },
  mounted() {
    this.$nextTick(function() {
    })
  },
  methods: {
    getdetail() {
      var self = this;
      var guid = this.$route.query.id;
      var query = {
        guid: guid
      };
      this.Ajax.post('getOneAct', query).then(function(resp) {
        resp.data.content = self.removeCell(resp.data.content);
        self.todolist = resp.data;
      });
    },
    removeCell(content) {
      return content.substring(content.indexOf('articlecontent3') - 15, content.length);
    }
  }
}
</script>